package com.ruoyi.web.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 远程消息服务
 */
@FeignClient(name = "ruoyi-feign-client", url = "http://localhost:9000")
public interface RemoteMessageService {
    
    /**
     * 获取消息
     */
    @GetMapping("/feign/getMessage/{name}")
    String getMessage(@PathVariable("name") String name);
} 